package com.github.florent37.singledateandtimepicker.model;

import java.util.Objects;

public class IntValue {
    private String label;
    private int value;

    public IntValue(String label, int value) {
        this.label = label;
        this.value = value;
    }

    public IntValue() {
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return this.label;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        IntValue intValue = (IntValue) o;
        return value == intValue.value;
    }
}
